﻿@{
    FollowPeers.Models.FollowPeersDBEntities followPeersDB = new FollowPeers.Models.FollowPeersDBEntities();
    string name = Membership.GetUser().UserName;
    FollowPeers.Models.UserProfile myprofile = followPeersDB.UserProfiles.SingleOrDefault(p => p.UserName == name);
    IEnumerable<FollowPeers.Models.Specialization> specializations = followPeersDB.Specializations.ToList();
    var Fields = (from u in followPeersDB.Specializations
                  select u.Field).Distinct();
 }

    @Html.Partial("_Header")
    @Html.Partial("_SideBar1")
    @Html.Partial("_SideBar6(Tags)")

    <table>
    <tr>
        <td>
                    <h2> Categories </h2>
                    <hr />
                    <ul class="grid9">
                    @using (Html.BeginForm())
                    {
                        @Html.ValidationSummary(true)
             
                        <!DOCTYPE html>  
                        <head>
                        <link href="@Url.Content("~/css/bootstrap.min.css")" rel="stylesheet" type="text/css" />
                        <link href="@Url.Content("~/css/bootstrap.css")" rel="stylesheet" type="text/css" />
                        <link href="@Url.Content("~/css/bootstrap-responsive.css")" rel="stylesheet" type="text/css" />
                        <script src="@Url.Content("~/js/jquery-1.8.2.min.js")" type="text/javascript"></script>
                        </head>
            
                        <body>

                        <ul class ="nav nav-tabs nav-stacked" style="text-align:center; width:400px">
                               @foreach (var item in Fields)
                               {
                                    <li><a href="/Forum/CategoryDetail/?Category=@item">@item</a></li>
                               }
                        </ul>

                        <script src="@Url.Content("~/js/bootstrap.min.js")"></script>
                        </body>
                    }
                    </div>
        </td>
    </tr>
    </table>
    
    @Html.Partial("_Footer")
